if exists(select name from sysobjects where name = 'sp_KhuyenMaiGetInfo')
	drop proc sp_KhuyenMaiGetInfo
go
/*-- =============================================
	Created by: HP
	Created on: 2014-04-17 (dd/mm/yyyy)
	Description: 
	--

	File:$sql-scripts/Proc.sp_KhuyenMaiGetInfo.sql
*/-- =============================================

CREATE PROCEDURE sp_KhuyenMaiGetInfo
			
	@KhuyenMaiId		INT
AS
BEGIN	
	SELECT
		a.[KhuyenMaiId],
		a.[TieuDe],
		a.[GiaNiemYet],
		a.[GiaKM],
		a.[ThoiGian],
		a.[Link],
		a.[ImageSmall],
		a.[SiteNguon],
		a.[Provider],
		a.[Summary],
		a.[ThuTu],
		a.[TrangThai],
		a.[NguoiTao],
		a.[NgayTao],
		a.[NguoiSua],
		a.[NgaySua],
		a.[WebId]
	FROM
		KhuyenMai a
	WHERE
		    a.[KhuyenMaiId] = @KhuyenMaiId;
END
GO
